package com.example.springtest;

import com.example.applicationcontext.AnnotationConfigApplicationContext;
import com.example.applicationcontext.ClassPathXmlApplicationContext;
import com.example.service.UserService;

/**
 * @Auther: 郭敬仰
 * @Date: 2019/6/11 15:54
 * @Description:
 */
public class TestAnnotation {
    public static void main(String[] args) throws Exception {
        AnnotationConfigApplicationContext app = new AnnotationConfigApplicationContext("com.example.service.impl");
        UserService userService = (UserService) app.getBean("userServiceImpl");
        userService.syso();
    }
}
